//
//  SettingMgr.h
//  CarCare
//
//  Created by ileo on 15/2/9.
//  Copyright (c) 2015年 baozun. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RefreshMgr.h"

#define SETTINGMGR [SettingMgr sharedInstance]

@interface SettingMgr : NSObject

DEF_SINGLETON

//通知开关
@property (nonatomic, assign) BOOL showTipsFire;
@property (nonatomic, assign) BOOL showTipsShake;
@property (nonatomic, assign) BOOL showTipsTravel;
//通知开关右侧的label文字
@property (nonatomic , copy) NSString * showFireDetail;
@property (nonatomic , copy) NSString * showShakeDetail;
@property (nonatomic , copy) NSString * showTravelDetail;

//添加行驶轨迹开关
@property (nonatomic , assign) BOOL showTipsTrajectory;
//添加手势密码开关
@property (nonatomic , assign) BOOL showGesturePassword;
//添加显示手势密码开关
@property (nonatomic , assign) BOOL showCanLookGesturePW;
//添加手势密码字符串字段
@property (nonatomic , copy) NSString * gesturePWStr;

//低电压提醒
@property (nonatomic, strong) RefreshVoltage *refreshVoltage;
@property (nonatomic, assign) BOOL showTipsVoltage;
@property (nonatomic, assign) CGFloat voltageValue;

//城市信息
@property (nonatomic, readonly) NSArray *carCityNames;

-(void)updateSettingInfoFinish:(void(^)())finish;

//获取手势密码开关状态 用来刷新手势密码 防止不同手机
- (void)getGuestureInfoFinish:(void(^)())finish;

-(void)setTipsFire:(BOOL)show finish:(void(^)())finish failure:(void(^)())failure;
-(void)setTipsShake:(BOOL)show finish:(void(^)())finish failure:(void(^)())failure;
-(void)setTipsTravel:(BOOL)show finish:(void(^)())finish failure:(void(^)())failure;
-(void)setTipsVoltage:(BOOL)show;
-(void)setShowVoltage:(CGFloat)voltage;
//添加轨迹通知开关
-(void)setTipsTrajectory:(BOOL)show;
//设置手势密码开关
- (void)setGesturePasswordFlag:(BOOL)gesturePWShow withCanLookGesturePWFLag:(BOOL)canLookGesturePWShow withGesturePWStr:(NSString *)gesturePWStr;
 

@end